<?php

class CreateAccountForm extends RegisterForm {

    public function configure() {
        parent::configure();
        $profileForm = new CreateProfileForm($this->object->Profile);
        unset($profileForm['id'], $profileForm['user_id']);
        $this->embedForm("profile", $profileForm);
        $this->widgetSchema->setHelps(array(
           'password' => 'Co najmniej 8 znaków' 
        ));
    }

}